
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.math.BigDecimal;

public class Student {

    private String name;
    private int age;
    private String grade;
    private BigDecimal score;
    private String department;

    public Student(String name, int age, String grade, BigDecimal score, String department) {
        this.name = name;
        this.age = age;
        this.grade = grade;
        this.score = score;
        this.department = department;
    }

    // Getters
    public String getName() { return name; }
    public int getAge() { return age; }
    public String getGrade() { return grade; }
    public BigDecimal getScore() { return score; }
    public String getDepartment() { return department; }

    @Override
    public String toString() {
        return "Student{name='" + name + "', age=" + age + ", grade='" + grade +
                "', score=" + score + ", department='" + department + "'}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Student)) return false;
        Student student = (Student) o;
        return age == student.age &&
                Objects.equals(name, student.name) &&
                Objects.equals(grade, student.grade) &&
                Objects.equals(score, student.score) &&
                Objects.equals(department, student.department);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, age, grade, score, department);
    }

}
